/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package schedulingScheme;

import java.util.List;

/**
 *
 * @author Andrzej
 */

//controller can switch on/off sensors when an event occurs
public interface SensorsController {
     public List<SensorNode> initializeNodes();

     /**
      *
      * @param roundNumber
      * @return list of nodes that will be active in next round, other should be turned off, or null when no changes
      */
     public List<SensorNode> roundPassed(int roundNumber);

     /**
      *
      * @param s
      * @return list of nodes that should be activated to replace died node. Can be empty, never null
      */
     public List<SensorNode> replaceDiedSensor(SensorNode s);

     /**
      *
      * @return true if alorithm reorganizes network when this event occurs
      */
     public boolean reactToTimePassed(int time);

}
